<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/Public/css/pintuer.css">
<link rel="stylesheet" href="/Public/css/admin.css">
<script src="/Public/js/jquery.js"></script>
<script src="/Public/js/pintuer.js"></script>
</head>
<body>
<p class="button bg-blue margin-left" target="right" style="float:right">当前平台共有积分单元：<?php echo ($all); ?></p>
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder">积分单元变更记录</strong></div>
  <div class="padding border-bottom">
  </div>
  <table class="table table-hover text-center">
    <tr>
        <th width="15%" style="text-align:left; padding-left:20px;">编号</th>
        <th width="15%">姓名</th>
        <th width="15%">电话</th>
        <th width="15%">当前积分单元</th>
        <th width="15%">时间</th>
      </tr>
      <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
            <td style="text-align:left; padding-left:20px;">
                <?php echo ($k); ?>
            </td>
			<td>
				<?php	 $mysql_server_name='127.0.0.1'; $mysql_username='roots'; $mysql_password='620500s'; $mysql_database='cdzx'; $conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password) or die("数据库链接错误") ; mysql_query("set names 'utf8'"); mysql_select_db($mysql_database); $sql ="select * from user where user_Id = ".$vo['user_id']; $result = mysql_query($sql,$conn); $row = mysql_fetch_array($result); echo $row['name']; ?>
            </td>
            <td>
            	<?php	 $mysql_server_name='127.0.0.1'; $mysql_username='roots'; $mysql_password='620500s'; $mysql_database='cdzx'; $conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password) or die("数据库链接错误") ; mysql_query("set names 'utf8'"); mysql_select_db($mysql_database); $sql ="select * from user where user_Id = ".$vo['user_id']; $result = mysql_query($sql,$conn); $row = mysql_fetch_array($result); echo $row['phone']; ?>
            </td>
            <td><?php echo ($vo["now_unit"]); ?></td>
            <td><?php echo ($vo["shijian"]); ?></td>
          </tr><?php endforeach; endif; else: echo "" ;endif; ?>
         
      <tr>
        <td colspan="8"><div class="pagelist"> <?php echo ($page); ?> </div></td>
      </tr>
    
  </table>
</div>


</body>
</html>